The following example shows how to create a script and cabinet file to prepare a UNIX component for an IEAK package. Microsoft NetShow is used in this example.
#!/bin/sh |
|
cd $2 |
# Argument $2 is the target location of the component ([install_dir]/[target]). Go to the location of the zip file. |
mkdir netshow |
# Create an installation directory. |
mv ns325_solaris.gz netshow |
# Move the zip file into that directory. |
cd netshow |
# Switch to that directory. |
gunzip ns325_solaris.gz |
# Unzip the component. |
chmod +x ns325_netshow |
# Assigns "execute permissions" to this file, so it can be run as a program. |
cd $1/bin |
# Argument $1 is the installation location. Switch to the Internet Explorer bin directory. |
ln -s ../netshow/ns325_solaris netshow |
# Create a link to the executable program. |
"cabarc n netshow.cab ns325_solaris.gz + netshow_install.sh"
Component
NetShow
Location
The location of the Netshow.cab fileāfor example, C:\Cabs\Netshow.cab
Program
netshow_install.sh
Size
The installed size of Netshow